package com.bestcem.xm.user.grpc.client.convert.strategy;

import com.bestcem.xm.om.grpc.v1.enums.PackageEditionEnum;
import com.bestcem.xm.om.grpc.v1.enums.PackageTypeEnum;

/**
 * 套餐相关转换类策略
 *
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2022/6/22 16:50
 */
public interface PackageGrpcConvertStrategy {
    default PackageTypeEnum.PackageType packageTypeConveter(Integer value) {
        return PackageTypeEnum.PackageType.forNumber(value);
    }

    default PackageEditionEnum.PackageEdition packageEditionConveter(Integer value) {
        return PackageEditionEnum.PackageEdition.forNumber(value);
    }
}
